package drds.container;

import java.util.Scanner;

/**
 * 外面的用户通过此进行DRDS管理。启动成功后通过NETTY连接的管理平台进行操作。
 * 
 * @author 曹正辉<330937205@qq.com>
 */
public class DRDS {
	private static String password = "1";
	private int stuats = 0;

	public static void main(String[] args) {
		DRDS drds = new DRDS();

		Scanner scanner = new Scanner(System.in);
		String s = scanner.next();
		while (!"stop".equals(s)) {
			s = scanner.next();
			if ("login".equals(s)) {
				System.out.println("input password");
				s = scanner.next();
				if (!drds.password.equals(s)) {
					System.out.println("please re input");
					s = scanner.next();
				} else {
					drds.stuats = 1;
					System.out.println("ok");
				}
			}
		}

	}
}
